package com.cloudy.s3.response;


import java.util.Map;

//import com.sun.net.httpserver.Headers;

public class AWSResponse<T> {
//	private Headers headers;
	private T response;
	private Map<String, MetadataEntry> metadataEntries;
	
//	public Headers getHeaders() {
//		return headers;
//	}
//	public void setHeaders(Headers headers) {
//		this.headers = headers;
//		fillMetaDataEntries();
//	}
	public T getResponse() {
		return response;
	}
	public void setResponse(T response) {
		this.response = response;
	}
	public Map<String, MetadataEntry> getMetadataEntries(){
		return metadataEntries;
	}
	
	public void setMetadataEntries(Map<String, MetadataEntry> metadataEntries) {
		this.metadataEntries = metadataEntries;
	}
//	private void fillMetadataEntries(){
//		Set<Entry<String, List<String>>>  set = headers.entrySet();
//		for (Entry<String, List<String>> entry : set) {
//			for (String val : entry.getValue()) {
//				MetadataEntry mEntry = new MetadataEntry();
//				mEntry.setName(entry.getKey());
//				mEntry.setValue(val);
//				metadataEntries.add(mEntry);
//			}
//			entry.getKey();
//		}
//	}
	
	
	
	
	

}
